package homework;

public class homework33 {
    public static void main(String[] args) {

        //1.
        int a1=5,a2=10;
        System.out.println(a1>a2?a1:a2);//10
        if (a1>a2){
            System.out.println(a1);
        }else {
            System.out.println(a2);
        }

        //2.
        int year = 2000;
        if (year % 4 ==0 && year %100 != 0 || year % 400 == 0) {
            System.out.println(year+"是闰年");
        }else {
            System.out.println(year+"是平年");
        }

        //3.
        double score = 55.0;
        if (score >= 90){
            System.out.println(score+"是合法成绩");
        }else if(score >= 80) {
            System.out.println(score+"是合法成绩");
        }else if(score >= 60) {
            System.out.println(score+"是合法成绩");
        }else {
            System.out.println(score+"不是合法成绩");
        }
        System.out.println("程序继续...");

    }
}
